package com.tao.design.decorator;

/**
 * @projectName: DesignMode
 * @package: com.tao.design.decorator
 * @className: Decorator
 * @author: TT_Hugo
 * @description: Decorator抽象类实现Person接口
 * @date: 2022/12/26 21:18
 * @version: 1.0
 */
public class Decorator implements Person{

    protected Person person;

    public void setPerson(Person person){
        this.person = person;
    }
    @Override
    public void eat() {
        person.eat();
    }
}
